from django.shortcuts import render

# Create your views here.
from rest_framework import generics
from rest_framework import permissions
from rest_framework.views import APIView
from rest_framework.response import Response
# from axf.util.JSONHttpResponse import JSONHttpResponse
from rest_framework.exceptions import NotFound
import json
import datetime
import logging
LOG_FILENAME = 'shop.log'

#logging.basicConfig(filename=LOG_FILENAME,level=logging.DEBUG)
logging.basicConfig(filename=LOG_FILENAME,level=logging.INFO)

class ProductListView(APIView):
    """
    产品列表
    """
    def get(self,request,format=None):
    	
    	resp = {"errcode":0,"msg":"success"}
    	return JSONHttpResponse(resp)
    
